<template>
  <!-- <el-button type="primary" @click="onSave"> -->
  <!-- <span>保存</span> -->
  <!-- <template #icon>
      <SvgIcon icon-class="ic_保存" />
    </template> -->
  <!-- </el-button> -->
  <div class="save" @click="onSave">
    <SvgIcon icon-class="ic_保存01" />
  </div>
</template>

<script lang="ts" setup>
import { useEditorStore } from '@/store/editor';
const editorStore = useEditorStore();
const onSave = async () => {
  editorStore.saveScene(true);
};
</script>

<style lang="less" scoped>
.save {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0 16px;
  font-size: 20px;
  cursor: pointer;
  &::before {
    position: absolute;
    top: 2px;
    left: 0;
    content: '';
    display: inline;
    width: 1px;
    height: 16px;
    background-color: #585858;
  }
}
</style>
